package com.ruibang.glass.equipment.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.equipment.domain.req.device.DeviceAllPageReq;
import com.ruibang.glass.equipment.entity.device.ScrapReport;
import com.teaming.cloud.framework2.common.model.ResultBody;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 报废报表服务类
 * </p>
 *
 * @author mameng
 * @since 2024-03-20
 */
public interface ScrapReportService extends IService<ScrapReport> {

    /**
     * 报废报表列表
     * @param deviceAllPageReq
     * @return
     */
    IPage<ScrapReport> getBoilerList(DeviceAllPageReq deviceAllPageReq);
    /**
     * 新增修改
     * @param accidentRegister
     * @return
     */
    ResultBody updateOrAddById(ScrapReport accidentRegister);
    /**
     * 新增
     * @param accidentRegister
     */
    void insertById(ScrapReport accidentRegister);
    /**
     * 导出
     * @param machiningReq
     */
    void export(DeviceAllPageReq machiningReq, HttpServletResponse response);


}
